# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-temporal_tables
_projname=temporal_tables
pkgver=1.2.2
pkgrel=2
pkgdesc="Temporal Tables PostgreSQL Extension"
url="https://github.com/arkhipov/temporal_tables"
arch="all"
license="BSD-2-Clause"
makedepends="postgresql-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/arkhipov/temporal_tables/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check"

build() {
	make
}

package() {
	depends="postgresql$(pg_config --major-version)"

	make install DESTDIR="$pkgdir"

	# Contains just README.md.
	rm -Rf "$pkgdir"/usr/share/doc
}

sha512sums="
a503048c98173aba3e854e5e89a45b123165539e9a51db7de99b34f726c4be75db0f65c205205ce80681228235c8a3d8a1064815022afcbf038a244f5818e9db  postgresql-temporal_tables-1.2.2.tar.gz
"
